package se.rende.myrss.data;

import java.util.List;

import com.sun.syndication.feed.synd.SyndEntry;

public class RegexFilterType implements FilterType {
	@Override
	public String getId() {
		return "regex";
	}

	@Override
	public String execute(String input, List<String> params, SyndEntry syndEntry) {
		return input.replaceAll(params.get(0), params.get(1));
	}

	@Override
	public void startBatch() {
	}
}
